<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let pages = [];
        for (let i = 0; i < 20; i++) {
            let index = Math.floor(i / 8);
            if (!pages[index]) {
                pages[index] = []
            }
            pages[index].push(i)
        }
        console.log(pages);

        function getPagtion(pageSize, pageNum) {}
        getPagtion(8, 2);
    </script>
</body>

</html>